<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'MyJsp.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<jsp:include page="/scripts/jquery/index.html"></jsp:include>
<jsp:include page="/scripts/bootstrap/index.html"></jsp:include>
<link rel="stylesheet" href="${basepath }style/default.css">
<script type="text/javascript">
function init() {
	initPage();
}
function initPage() {
	var myLayout = SN.getLayout("myLayout", "1C");

	myLayout.cells("a").attachObject("div");
	myLayout.cells("a").hideHeader();

	var toolBar = myLayout.cells("a").attachToolbar();
	toolBar = SN.initToolbar(toolBar);
	toolBar = SN.initToolbar_save(toolBar);
	toolBar = SN.initToolbar_close(toolBar);
	toolBar.attachEvent("onclick",function(obj){
		if(obj=="save"){
			//save();
		}else if (obj == "close") {
			parent.win.close();
		}
	});
}
</script>
</head>
<body onload="init();">
	<div id="myLayout">
		<button class="btn btn-primary">保存</button>
	</div>
	<div class="contDiv">
		<div class="container-fluid" style="height:100%;width:100%;background:#ffffff;border-top:0px solid #979595">
			<div class="row" style="height:100%">
				<div class="roleDiv">
					<button class="btn btn-primary">添加角色</button>
					<button class="btn btn-primary">编辑角色</button>
					<button class="btn btn-primary">删除角色</button>
					<br>
					<table style="width:100%;margin-top:5px">
						<tr>
							<td style="text-align:right;width:65px"><span>角色名：</span></td>
							<td><input type="text" class="form-control" style="width:96%"></td>
						</tr>
					</table>
					<hr>
					<div class="roleCont">角色</div>
				</div>
				<div class="privilegesBefore">
					<div class="privilegesCont">权限</div>
				</div>
				<div class="privilegesBtn">
					<button class="btn btn-primary">
						增加权限<span class="glyphicon glyphicon-menu-right"></span>
					</button>
					<button class="btn btn-primary">
						<span class="glyphicon glyphicon-menu-left"></span>移除权限
					</button>
				</div>
				<div class="privilegesAfter">
					<div class="privilegesCont">权限</div>
				</div>
			</div>
		</div>
	</div>
</body>
</html>
